﻿using LdtJudge.DataEngine.Model.XMLConfigModel.OptimzeMode;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace LdtJudge.DataEngine.Model.XMLConfigModel.OptimizeConfigModel
{
    /// <summary>
    /// 相同节点的判定
    /// </summary>
    [XmlRootAttribute("samenode", IsNullable = false)]
    public class OptimizeSameNodeConfig
    {
        /// <summary>
        /// 节点名称
        /// </summary>
        private string _Name;
        /// <summary>
        /// 节点中文名称
        /// </summary>
        private string _ChineseName;
        /// <summary>
        /// 节点配置集合
        /// </summary>
        private List<OptimizeSameNodeXML> _OptimizeSameNodes = new List<OptimizeSameNodeXML>();
        /// <summary>
        /// 节点编号
        /// </summary>
        private string _Code;

        /// <summary>
        /// 节点编号
        /// </summary>
        [XmlAttribute("code")]
        public string Code { get => _Code; set => _Code = value; }
        /// <summary>
        /// 节点名称
        /// </summary>
        [XmlAttribute("name")]
        public string Name { get => _Name; set => _Name = value; }
        /// <summary>
        /// 节点中文名称
        /// </summary>
        [XmlAttribute("chinesename")]
        public string ChineseName { get => _ChineseName; set => _ChineseName = value; }
        /// <summary>
        /// 节点配置集合
        /// </summary>
        [XmlElementAttribute("xmllable")]
        public List<OptimizeSameNodeXML> OptimizeSameNodes { get => _OptimizeSameNodes; set => _OptimizeSameNodes = value; }




    }
}
